<div id='betNavigation'>
	<h2><?php echo getCountBetsAvailable(); ?> paris disponibles</h2>
	<ul class='roll'>
		<?php 
			$_sports = getSports();
			foreach($_sports as $_sport){
				$_sport = new Sport($_sport->id)
				?>
				<li>
					<span class='link'><a href='?sport=<?php echo $_sport->getID(); ?>'><?php echo $_sport->getName(); ?> <span class='ft_9 c_9'>(<?php echo $_sport->getCountBetsAvailable(); ?>)</span></a></span>
					<span class='openclose fr'></span>
				</li>
				<ul>
				<?php 
					$_leagues = $_sport->getLeagues();
					foreach($_leagues as $_league){
						$_league = new League($_league->id);
						?>
						<li>
							<a href='?league=<?php echo $_league->getId(); ?>'><?php echo $_league->getName("EN"); ?> <span class='ft_9 c_9'>(<?php echo $_league->getCountBetsAvailable(); ?>)</span></a>
						</li>
						<?php	
					}
				?>
				</ul>
				<?php	
			}
		?>
	</ul>
</div>
